package com.situ.servlet;

import com.situ.service.MenuService;
import com.situ.util.BaseServlet;
import com.situ.vo.MenuTreeVO;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@WebServlet("/init")
public class InitServlet extends BaseServlet {

    MenuService service = new MenuService();

    public List<MenuTreeVO> menuTree(HttpServletRequest req) {
        return service.init(req.getSession());
    }

}
